package net.realsee.common.enums.wcs.intf;

import cn.hutool.core.util.StrUtil;

/**
 * Http类型枚举
 *
 * @author 孙正华
 * @since 2023/7/28 13:52
 */
public enum InterfaceTypeEnum {

    HTTP,
    WEBSERVICE,
    TCP,
    UDP,
    ;

    public static boolean contains(String type) {
        for (InterfaceTypeEnum m : InterfaceTypeEnum.values()) {
            if (StrUtil.equalsIgnoreCase(m.name(), type)) {
                return true;
            }
        }
        return false;
    }
}
